package chapter5.example01;

public class example01 {
    public static void main(String[] args) {
        String name = "米线";
        String str1 = new String();
        String str2 = new String("abcd");
        char[] charArray = new char[] {'D','E','F'};
        String str3 = new String(charArray);//"DEF"
        byte[] arr = {97,98,99};
        String str4 = new String(arr);//"abc"
        System.out.println("a"+ str1 + "b");
        System.out.println(str2);
        System.out.println(str3);
        System.out.println(str4);

    }
}
